package com.aia.aia2.web.json;

import org.apache.log4j.Logger;

import com.aia.aia2.domain.Formdata;
import com.aia.aia2.domain.FormdataExt;
import com.aia.aia2.service.GroupService;
import com.cfh.util.JsonActionSupport;
import com.opensymphony.xwork2.ModelDriven;

@SuppressWarnings("serial")
public class GroupForm1Json extends JsonActionSupport implements ModelDriven<Formdata> {
	private static final Logger logger = Logger.getLogger(GroupForm1Json.class);
	private FormdataExt formdataExt = new FormdataExt();
	private GroupService groupService;

	public Formdata getModel() {
		return getFormdataExt();
	}

	public GroupService getGroupService() {
		return groupService;
	}

	public void setGroupService(GroupService groupService) {
		this.groupService = groupService;
	}


	@Override
	public void doExecute() {
		logger.debug("execute() Start");
		groupService.updateGroupForm1(this);
		logger.debug("execute() End");
	}

	public FormdataExt getFormdataExt() {
		return formdataExt;
	}

	public void setFormdataExt(FormdataExt formdataExt) {
		this.formdataExt = formdataExt;
	}
}
